package com.xxin.module.pojo.entity;

import com.mybatisflex.annotation.Table;
import com.xxin.module.pojo.BaseEntity;
import java.io.Serializable;
import java.math.BigDecimal;


import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.EqualsAndHashCode;

/**
 * 订单商品明细表 实体类。
 *
 * @author lvjx
 * @since 2024-09-05
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Table("oms_order_item")
public class OmsOrderItem extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单ID(对应订单表主键ID)
     */
    private Long orderId;

    /**
     * 商品spuID(对应商品spu表主键ID)
     */
    private Long spuId;

    /**
     * 商品图片
     */
    private String productPic;

    /**
     * 商品名称
     */
    private String productName;

    /**
     * 销售价格
     */
    private BigDecimal productPrice;

    /**
     * 购买数量
     */
    private Integer productQuantity;

    /**
     * 商品skuID(对应商品sku表主键ID)
     */
    private Long skuId;

    /**
     * 商品销售属性:[{"key":"颜色","value":"颜色"},{"key":"容量","value":"4G"}]
     */
    private String productAttr;

}
